//
//  AddressSelectCell.m
//  Shengzhuli
//
//  Created by FXGuo on 17/3/19.
//  Copyright © 2017年 kamangkeji. All rights reserved.
//

#import "AddressSelectCell.h"

@interface AddressSelectCell()

@property (weak, nonatomic) IBOutlet UILabel *addressLab;
@property (weak, nonatomic) IBOutlet UILabel *tipsLab;


@end

@implementation AddressSelectCell

- (void)awakeFromNib {
    [super awakeFromNib];
}
- (IBAction)selectBtnClick:(UIButton *)btn
{
    if ([self.delegate respondsToSelector:@selector(addressSelectCellSelect)]) {
        [self.delegate addressSelectCellSelect];
    }
}

- (void)setGoodsModel:(AddGoodsModel *)goodsModel
{
    _goodsModel = goodsModel;
    self.tipsLab.text = [NSString stringWithFormat:@"单个商品运费%.2f元,每增加一件%.2f元",self.goodsModel.freightInMaxCount,self.goodsModel.freightInEveryAdd];
}
- (void)setAddressModel:(AddressModel *)addressModel
{
    _addressModel = addressModel;
    if (addressModel.receiveAddress.length>0) {
        self.addressLab.text = addressModel.receiveAddress;
    }
}

@end
